import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;

public class Demo11 {
    public static void main(String[] args) throws IOException {
        try (Writer writer=new FileWriter("./text.txt")){
            writer.write("你好，世界");
        }
    }
}
